Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do not panic when /proc/modules does not exist #139

Merged
merged 6 commits into from
Apr 7, 2024

Conversation

eld4niz
Copy link
Contributor

@eld4niz eld4niz commented Apr 1, 2024

Description

As it mentioned in issue I linked below, chromebooks and few types of generic linux kernels does not include /proc/modules so program panics.

Motivation and Context

fixes #138

I'll also implement parsing to return empty set of modules.

How Has This Been Tested?

I couldn't test this bug fix, because I don't use chromebook or generic linux kernel, so I hope who created issue can test on his device. If there are any ways to reproduce that kernel types please let me know :)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (no code change)
  • Refactor (refactoring production code)

Checklist:

  • My code follows the code style of this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Rustfmt and Rust-clippy passed.

@eld4niz eld4niz requested a review from orhun as a code owner April 1, 2024 14:58
@orhun
Copy link
Owner

orhun commented Apr 1, 2024

I'll also implement parsing to return empty set of modules.

Does that mean you will follow up with another PR?

src/kernel/lkm.rs Outdated Show resolved Hide resolved
@eld4niz
Copy link
Contributor Author

eld4niz commented Apr 1, 2024

Yes. I'll try to add it with another PR.
Now I'm trying to find a way to solve termion problem mentioned in panic handler

src/kernel/lkm.rs Outdated Show resolved Hide resolved
Copy link
Owner

@orhun orhun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@orhun orhun changed the title fix: /proc/modules does not exist fix: Do not panic when /proc/modules does not exist Apr 7, 2024
@orhun orhun merged commit eb91117 into orhun:master Apr 7, 2024
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aborts when no modules present
2 participants